<?php
/**
 * Author:xsc
 * Time:2023/9/20 17:47
 */

namespace App\Params\Common;

use App\Params\BaseParam;

class GoodsMoveParams extends BaseParam
{

    public $access_mid;

    public $mid;

    public $from_mobile;

    public $to_mobile;

    public $goods_id;

    public $lock_serial_number;

    public function rules()
    {
        return [
            'access_mid'         => 'required|string',
            'mid'                => 'string',
            'from_mobile'        => 'required|string',
            'to_mobile'          => 'required|string',
            'goods_id'           => 'required|int',
            'lock_serial_number' => 'required|string',
        ];
    }

    public function message()
    {
        return [
            "access_mid.required"         => "平台号不能为空",
            "from_mobile.required"        => "转移人手机号不能为空",
            "to_mobile.required"          => "接收人手机号不能为空",
            "goods_id.required"           => "商品id不能为空",
            "lock_serial_number.required" => "商品锁定流水号不能为空",
        ];
    }

    public function getAccessMid()
    {
        return $this->access_mid;
    }

    public function getMid()
    {
        return $this->mid;
    }

    public function getFromMobile()
    {
        return $this->from_mobile;
    }

    public function getToMobile()
    {
        return $this->to_mobile;
    }

    public function getGoodsId()
    {
        return $this->goods_id;
    }

    public function getLockSerialNumber()
    {
        return $this->lock_serial_number;
    }

}
